package com.study.opensource.spring.condition;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;

import java.util.stream.Stream;

/**
 * @author 许棒棒
 * @className com.study.study.opensource.spring.condition.SpringConditionApplication
 * @description TODO 类描述
 * @date 2021/04/17 23:30:02
 */
@SpringBootApplication(scanBasePackages = {
        "com.study.study.opensource.spring.provider.config",
        "com.study.study.opensource.spring.condition"
})
public class SpringConditionApplication {
    public static void main(String[] args) {
        ConfigurableApplicationContext run = SpringApplication.run(SpringConditionApplication.class, args);
        Stream.of(run.getBeanDefinitionNames()).forEach(System.out::println);
//        Person bean = run.getBean(Person.class);
//        System.out.println(bean);
    }
}
